package com.csea.tools.tables;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Csea
 * @title
 * @date 2019/12/27 20:59
 */
@Data
@AllArgsConstructor
@ExcelTarget("courseEntity")
public class CourseTable implements Serializable {

    private String id;

    @Excel(name = "课程名称", orderNum = "1", width = 25,needMerge = true)
    private String name;

    @ExcelEntity(id = "absent")
    private TeacherTable mathTeacher;

    @ExcelCollection(name = "学生", orderNum = "4")
    private List<StudentTable> students;
}
